﻿
using CSharpLibs.Annotations;

namespace System
{
	[Builtin]
	public static class Console
	{
		private static IO.TextReader stdin;
		private static IO.TextWriter stdout;

		static Console()
		{
			stdin = new IO.StdIn();
			stdout = new IO.StdOut();
		}

		public static void SetIn(IO.TextReader r)
		{ stdin = r; }

		public static void SetOut(IO.TextWriter w)
		{ stdout = w; }

		public static String ReadLine()
		{ return stdin.ReadLine(); }

		public static void Write(char x)
		{ stdout.Write(x); }

		public static void Write(int x)
		{ stdout.Write(x); }

		public static void Write(float x)
		{ stdout.Write(x); }

		public static void Write(double x)
		{ stdout.Write(x); }

		public static void Write(String x)
		{ stdout.Write(x); }

		public static void WriteLine()
		{ stdout.WriteLine(); }

		public static void WriteLine(char x)
		{ stdout.WriteLine(x); }

		public static void WriteLine(int x)
		{ stdout.WriteLine(x); }

		public static void WriteLine(float x)
		{ stdout.WriteLine(x); }

		public static void WriteLine(double x)
		{ stdout.WriteLine(x); }

		public static void WriteLine(String x)
		{ stdout.WriteLine(x); }
	}
}
